#include "point3d.h"


Point3D::Point3D() : Object3D()
{

}

Point3D::Point3D(const Point3D &point3d) : Object3D(point3d)
{

}

Point3D::Point3D(const double &_x, const double &_y, const double &_z) : Object3D(_x,_y,_z)
{

}


inline void Point3D::setPosition(const double &_x, const double &_y, const double &_z)
{
    x=_x;
    y=_y;
    z=_z;
}

inline void Point3D::setPosition(const Point3D &p)
{
    *(this)=p;
}

inline Vector3D Point3D::operator-(const Point3D &v) const
{
    return Vector3D(x-v.x,y-v.y,z-v.z);
}

inline Point3D Point3D::operator+(const Vector3D &v) const
{
    return Point3D(x+v.getX(),y+v.getY(),z+v.getZ());
}
